<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/details/linuxSerial.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../dir_b485ae80868baed16097635ed27c0024.html">details</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">linuxSerial.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;memory.h&gt;</code><br />
<code>#include &lt;termios.h&gt;</code><br />
<code>#include &lt;sys/stat.h&gt;</code><br />
<code>#include &lt;fcntl.h&gt;</code><br />
<code>#include &lt;sys/select.h&gt;</code><br />
<code>#include &lt;thread&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d0e/misc_8hpp_source.html">misc.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../da/d7b/debug_8hpp_source.html">debug.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d2/dd8/linux_serial_8hpp_source.html">details/linuxSerial.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
linuxSerial.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/de6/linux_serial_8cpp__incl.png" border="0" usemap="#asrc_2details_2linux_serial_8cpp" alt=""/></div>
<map name="asrc_2details_2linux_serial_8cpp" id="asrc_2details_2linux_serial_8cpp">
<area shape="rect" title=" " alt="" coords="744,5,915,32"/>
<area shape="rect" title=" " alt="" coords="5,80,73,107"/>
<area shape="poly" title=" " alt="" coords="744,25,457,40,275,57,88,83,88,77,275,52,457,35,744,19"/>
<area shape="rect" title=" " alt="" coords="97,80,176,107"/>
<area shape="poly" title=" " alt="" coords="744,27,500,45,348,61,191,83,190,77,347,56,499,40,744,22"/>
<area shape="rect" title=" " alt="" coords="200,80,275,107"/>
<area shape="poly" title=" " alt="" coords="744,30,539,50,294,83,291,83,290,78,293,77,538,45,744,24"/>
<area shape="rect" title=" " alt="" coords="355,229,435,256"/>
<area shape="poly" title=" " alt="" coords="745,33,676,48,599,73,523,108,488,130,456,157,430,186,411,217,406,214,426,183,452,153,484,126,520,103,597,68,674,43,744,28"/>
<area shape="rect" title=" " alt="" coords="1454,80,1512,107"/>
<area shape="poly" title=" " alt="" coords="915,20,1148,37,1292,53,1439,77,1438,82,1292,59,1148,42,915,26"/>
<area shape="rect" title=" " alt="" coords="1536,80,1628,107"/>
<area shape="poly" title=" " alt="" coords="915,21,1182,40,1349,56,1521,77,1520,82,1348,61,1181,45,915,27"/>
<area shape="rect" title=" " alt="" coords="1009,229,1066,256"/>
<area shape="poly" title=" " alt="" coords="843,31,1018,216,1014,220,840,34"/>
<area shape="rect" title=" " alt="" coords="282,304,353,331"/>
<area shape="poly" title=" " alt="" coords="745,31,635,49,576,64,519,82,452,113,393,157,353,189,339,206,327,230,319,260,318,289,313,289,314,259,322,228,335,203,349,185,389,153,449,108,517,78,574,59,634,44,744,26"/>
<area shape="rect" href="../../d0/d5c/malloc_shared_ptr_8hpp.html" title=" " alt="" coords="741,229,884,256"/>
<area shape="poly" title=" " alt="" coords="831,33,817,214,812,214,826,32"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="595,80,670,107"/>
<area shape="poly" title=" " alt="" coords="796,35,682,77,680,72,794,30"/>
<area shape="rect" href="../../da/d7b/debug_8hpp.html" title=" " alt="" coords="1652,80,1733,107"/>
<area shape="poly" title=" " alt="" coords="915,19,1230,35,1431,52,1636,77,1636,82,1430,57,1229,40,915,25"/>
<area shape="rect" href="../../d2/dd8/linux_serial_8hpp.html" title=" " alt="" coords="1282,80,1430,107"/>
<area shape="poly" title=" " alt="" coords="916,29,1267,77,1267,82,915,34"/>
<area shape="rect" title=" " alt="" coords="829,304,892,331"/>
<area shape="poly" title=" " alt="" coords="823,255,846,290,841,293,818,258"/>
<area shape="rect" title=" " alt="" coords="978,304,1057,331"/>
<area shape="poly" title=" " alt="" coords="849,254,969,296,967,301,847,259"/>
<area shape="rect" title=" " alt="" coords="1188,304,1256,331"/>
<area shape="poly" title=" " alt="" coords="884,251,1015,272,1173,301,1172,306,1014,277,883,257"/>
<area shape="rect" title=" " alt="" coords="1080,304,1163,331"/>
<area shape="poly" title=" " alt="" coords="867,254,1066,300,1065,305,866,259"/>
<area shape="poly" title=" " alt="" coords="596,103,538,116,469,140,434,157,401,178,371,202,345,231,331,260,323,289,318,288,326,258,341,228,367,198,398,173,432,152,467,135,537,111,594,98"/>
<area shape="rect" title=" " alt="" coords="1419,304,1472,331"/>
<area shape="poly" title=" " alt="" coords="663,105,943,227,970,242,998,253,1080,270,1194,286,1404,309,1404,315,1193,292,1079,276,997,259,968,246,941,232,661,110"/>
<area shape="rect" title=" " alt="" coords="1047,379,1124,405"/>
<area shape="poly" title=" " alt="" coords="608,110,579,129,553,156,524,203,506,246,504,267,506,287,515,308,530,329,555,341,603,352,743,369,901,380,1032,386,1031,392,901,386,742,374,602,357,553,346,527,333,510,310,501,288,498,267,501,245,520,201,549,153,575,125,605,105"/>
<area shape="rect" title=" " alt="" coords="645,155,702,181"/>
<area shape="poly" title=" " alt="" coords="642,106,661,140,657,143,637,109"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="564,155,621,181"/>
<area shape="poly" title=" " alt="" coords="628,109,609,142,604,140,623,106"/>
<area shape="poly" title=" " alt="" coords="564,182,445,226,443,221,562,177"/>
<area shape="poly" title=" " alt="" coords="622,176,634,179,708,193,766,199,823,208,896,227,925,241,953,253,1044,271,1171,287,1404,310,1403,315,1171,293,1044,276,952,259,922,245,894,232,822,213,765,205,707,198,633,184,621,181"/>
<area shape="poly" title=" " alt="" coords="582,183,564,204,551,230,541,259,534,284,536,306,550,329,574,341,619,351,753,368,905,380,1031,386,1031,391,905,385,753,374,618,357,572,346,547,333,531,308,529,283,536,258,546,228,560,201,577,180"/>
<area shape="rect" title=" " alt="" coords="560,229,624,256"/>
<area shape="poly" title=" " alt="" coords="595,182,595,214,590,214,590,182"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="649,229,717,256"/>
<area shape="poly" title=" " alt="" coords="610,180,657,218,654,222,606,184"/>
<area shape="poly" title=" " alt="" coords="649,256,637,259,491,288,369,310,368,305,490,283,636,253,648,251"/>
<area shape="poly" title=" " alt="" coords="718,251,730,253,852,271,949,277,1048,284,1173,301,1172,306,1047,289,949,283,852,276,729,259,717,256"/>
<area shape="poly" title=" " alt="" coords="718,251,730,253,822,269,896,278,971,286,1066,301,1065,306,970,292,895,283,822,274,729,259,717,256"/>
<area shape="poly" title=" " alt="" coords="702,254,762,296,817,328,873,348,930,363,1032,382,1031,387,929,368,871,353,815,333,759,300,699,259"/>
<area shape="rect" title=" " alt="" coords="685,304,753,331"/>
<area shape="poly" title=" " alt="" coords="692,255,708,289,704,291,687,258"/>
<area shape="rect" title=" " alt="" coords="916,304,954,331"/>
<area shape="poly" title=" " alt="" coords="718,250,902,301,901,306,717,255"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="561,304,661,331"/>
<area shape="poly" title=" " alt="" coords="672,258,636,295,632,291,669,255"/>
<area shape="poly" title=" " alt="" coords="662,326,673,328,871,359,1032,381,1032,386,870,364,672,333,661,331"/>
<area shape="poly" title=" " alt="" coords="1330,110,1080,225,1078,220,1328,105"/>
<area shape="poly" title=" " alt="" coords="1410,105,1489,126,1579,155,1658,190,1687,208,1706,228,1714,242,1716,256,1713,267,1706,278,1682,294,1648,305,1565,317,1488,319,1488,314,1565,311,1647,300,1680,289,1702,274,1708,265,1711,255,1709,244,1702,231,1684,212,1655,194,1577,160,1488,131,1409,110"/>
<area shape="poly" title=" " alt="" coords="1428,105,1538,127,1624,152,1670,172,1713,193,1728,206,1737,221,1738,238,1729,258,1712,275,1689,291,1627,318,1549,341,1461,358,1282,381,1140,391,1139,386,1281,375,1460,353,1548,335,1625,313,1687,287,1709,271,1725,254,1733,237,1732,223,1724,210,1710,198,1668,177,1622,157,1537,132,1427,110"/>
<area shape="rect" title=" " alt="" coords="1634,229,1692,256"/>
<area shape="poly" title=" " alt="" coords="1384,105,1624,220,1622,225,1381,110"/>
<area shape="rect" title=" " alt="" coords="1818,304,1878,331"/>
<area shape="poly" title=" " alt="" coords="1431,102,1443,104,1503,110,1554,111,1643,109,1685,110,1729,116,1777,130,1832,152,1860,166,1881,181,1898,200,1912,229,1915,248,1909,266,1896,282,1882,296,1878,292,1892,279,1904,263,1910,247,1907,230,1893,203,1878,185,1858,171,1830,157,1775,135,1728,122,1684,115,1643,114,1554,116,1503,115,1443,109,1431,108"/>
<area shape="rect" href="../../df/d05/timer_8hpp.html" title=" " alt="" coords="1319,155,1394,181"/>
<area shape="poly" title=" " alt="" coords="1359,107,1359,139,1354,139,1354,107"/>
<area shape="rect" href="../../d3/d9d/iserial_8hpp.html" title=" " alt="" coords="1818,229,1898,256"/>
<area shape="poly" title=" " alt="" coords="1431,102,1443,104,1498,109,1546,109,1629,105,1669,106,1709,112,1752,127,1800,152,1817,165,1830,181,1849,214,1845,216,1826,184,1813,169,1798,157,1750,132,1708,117,1668,111,1629,110,1546,114,1498,114,1443,109,1431,108"/>
<area shape="poly" title=" " alt="" coords="1319,180,1086,232,1082,233,1080,228,1085,227,1318,175"/>
<area shape="poly" title=" " alt="" coords="1354,183,1336,218,1308,258,1284,280,1259,298,1256,293,1281,275,1304,254,1331,215,1349,180"/>
<area shape="poly" title=" " alt="" coords="1358,182,1351,217,1336,257,1309,301,1270,333,1238,351,1205,365,1140,383,1139,378,1203,360,1236,346,1267,328,1305,297,1331,255,1346,216,1352,181"/>
<area shape="poly" title=" " alt="" coords="1319,179,1232,200,1131,232,1105,244,1080,258,970,305,968,300,1078,254,1103,240,1129,227,1230,195,1318,174"/>
<area shape="poly" title=" " alt="" coords="1395,175,1620,226,1618,231,1394,180"/>
<area shape="rect" title=" " alt="" coords="1564,229,1610,256"/>
<area shape="poly" title=" " alt="" coords="1395,178,1550,226,1548,231,1394,183"/>
<area shape="rect" href="../../db/d24/itimer_8hpp.html" title=" " alt="" coords="1419,229,1539,256"/>
<area shape="poly" title=" " alt="" coords="1379,180,1446,219,1443,223,1376,184"/>
<area shape="rect" href="../../de/d6d/singleton_8hpp.html" title=" " alt="" coords="1142,229,1293,256"/>
<area shape="poly" title=" " alt="" coords="1333,184,1257,224,1254,219,1331,180"/>
<area shape="poly" title=" " alt="" coords="1476,258,1460,291,1455,289,1471,255"/>
<area shape="poly" title=" " alt="" coords="1487,256,1497,292,1496,314,1486,332,1462,350,1427,364,1383,374,1333,382,1229,391,1140,394,1140,388,1229,386,1332,377,1381,369,1425,359,1460,345,1482,329,1490,312,1491,293,1482,257"/>
<area shape="poly" title=" " alt="" coords="1540,253,1803,305,1802,310,1539,258"/>
<area shape="poly" title=" " alt="" coords="1221,256,1223,288,1217,289,1216,257"/>
<area shape="poly" title=" " alt="" coords="1203,259,1152,297,1149,292,1199,254"/>
<area shape="poly" title=" " alt="" coords="1817,254,1488,311,1487,306,1817,248"/>
<area shape="poly" title=" " alt="" coords="1871,254,1885,271,1896,291,1901,313,1893,332,1877,343,1852,352,1777,366,1677,376,1561,384,1323,392,1140,393,1140,388,1323,386,1561,379,1676,371,1776,361,1850,346,1875,338,1889,329,1896,312,1891,293,1880,274,1867,258"/>
<area shape="poly" title=" " alt="" coords="1859,257,1855,289,1849,288,1853,256"/>
</map>
</div>
</div>
<p><a href="../../d9/db7/linux_serial_8cpp_source.html">浏览该文件的源代码.</a></p>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
